package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 司机驾驶证信息业务对象 driver_drivers_license
 *
 * @author ruoyi
 * @date 2024-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DriverDriversLicenseBo extends BaseEntity {

    /**
     * 驾驶证id
     */
    @NotNull(message = "驾驶证id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 账号id(当前)
     */
    @NotNull(message = "账号id(当前)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long relevanceUserId;

    /**
     * 初次领证时间
     */
    @NotNull(message = "初次领证时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 有效期截止时间
     */
    @NotNull(message = "有效期截止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 准驾车型
     */
    @NotBlank(message = "准驾车型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String quasiDrivingType;

    /**
     * 证件照(01正面)
     */
    @NotBlank(message = "证件照(01正面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url01;

    /**
     * 证件照(02反面)
     */
    @NotBlank(message = "证件照(02反面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url02;

    /**
     * 其他参数
     */
    @NotBlank(message = "其他参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @NotNull(message = "删除标志（0代表存在 1代表删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDeleted;


}
